package cn.psvmc.cxzapi.model.system;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 帮助中心表
 * @Author auto
 * @Date 2024-08-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_help")
public class THelp implements Serializable {

    //帮助中心id
    @TableId(value = "helpid", type = IdType.AUTO)
    private Integer helpid;

    //标题
    @TableField("title")
    private String title;

    //内容
    @TableField("content")
    private String content;

    //类型（1订单问题 2支付问题 3发货问题 4售后问题）
    @TableField("type")
    private Integer type;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    //操作人id
    @TableField(value = "updateid", fill = FieldFill.INSERT_UPDATE)
    private Integer updateid;

    //操作时间
    @TableField(value = "updatetime", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatetime;

    //版本号
    @TableField("rversion")
    @Version
    private Integer rversion;


}
